package com.fhz.day005.test2

import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

/**
 * 时间:2021/10/19
 * @author msfeng
 * 简述: TODO
 */
class XiaoMingObserver : LifecycleObserver{

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    fun create(){
        println("create")
        //
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun resume(){
        println("resume")
    }

    fun stop(){
        println("stop")
    }

}
